if addtional graphics do not offer additional information or context for your main graphic/story, consider leaving them out
Using too many colors or very bright colors can lead to visual confusion.
Use color to highlight significant data points
Use color to highlight important categories
Think twice before using color only to make a graph colorful.
Too many labels can clutter a visualization.
Don’t need to label every single data point
Try grouping labels if you really need them
Larger elements draw more attention than smaller ones
Therefore, label key information in larger fonts
Plot important data with bigger markers
Complex graphical elements in shape or texture attract more attention than simple ones.
A data point represented by a complex icon might stand out more than one represented by a simple circle.
Many small graphical elements grouped together can collectively hold more visual weight than one large graphical element.
This is relevant for visualizations like scatter plots and heat maps.
It’s not just about text
All elements in a graphic should work together to create an organized appearance
Strategic placement and organization of all visual elements within a graph, dashboard, or any infographic helps clarity and cohesion.
You do not want them spending time figuring out what each element represents each time they look at a visualization in your report/thesis/etc.
Always Focus on the Message!
Design a visualization so that the most important information catches the viewer’s eye first
Then follow it with the secondary details
This can be accomplished through good use of size, color, and placement.
Keep the focus on the story that you are trying to “tell”
R Shiny is used for creating interactive web applications in R. Users can change what they see using Shiny.
Shiny is for others to interactively explore our data. Users do not need to know R.
Shiny can be used to analyze data and create graphics and summaries - but the point is it is typically built for others.
If your data updates, Shiny can automatically update the data. This means users always see the most current information.
We use R to write the code for what the Shiny app should do with the data, e.g. compute summary stats, draw graphs, etc.
We also use R to design what the app will look like.
The R Shiny function converts your code into a web app that can be accessed through a browser
Select File-New File-Shiny Web App
Choose a name, choose a single file (app.R when just starting out), choose a location on your local drive to store your app
There should now be a new folder with an RStudio created demo file in it. Click on “Run App” in the source windown
If you run the app (green triangle icon on the upper right) the default Old Faithful Shiny app should pop up
You can open it in your browser to get a better look
runExample("01_hello") # a histogram
runExample("02_text") # tables and data frames
runExample("03_reactivity") # a reactive expression
runExample("04_mpg") # global variables
runExample("05_sliders") # slider bars
runExample("06_tabsets") # tabbed panels
runExample("07_widgets") # help text and submit buttons
runExample("08_html") # Shiny app built from HTML
runExample("09_upload") # file upload wizard
runExample("10_download") # file download wizard
runExample("11_timer") # an automated timer
https://georgestagg.github.io/duckdb-flights-shinylive/
It would make a good final project for your webapp to get this running:
Shiny apps have a UI that accepts input and displays output
The UI passess the input to the server
Shiny apps have a server that receives input from the UI and generates output that is passed bak to the UI for display
Process using shinyApp(ui = ui, server = server) at the end
https://shiny.posit.co/ Homepage
https://github.com/rstudio/shiny Mastering Shiny (online text)
shinyApp(ui = ui, server = server) runs and we have a Shiny apprunGist("8ad7b367f0d4d9947a94c5387900b2bd") make sure your Shiny app has a standard name like app.R and not my non-standard ones.library(shiny) activeI have access to earthquake data in Southern California
I can create a Shiny app so my users could select a specific time frame and map the earthquakes.
They might adjust their choices to see data from different years, or click on the map to get different information about a particular are.
runGist("\<gist number\>")